package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    void insertList(@Param("orderDetails") List<OrderDetail> orderDetails);

    /**
     * 查询订单明细
     * @param currentId
     * @return
     */
    List<OrderDetail> selectOrderDetailById(@Param("orderId") Long currentId);

    List<ShoppingCart> selectByOrderId(@Param("orderId") Long id);
}
